package com.itheima.controller;

import com.itheima.common.R;
import com.itheima.service.ReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("report")
public class ReportController{
    @Autowired
    ReportService reportService;
    @GetMapping("empGenderData")
    public R empGenderData() {

        return R.ok(reportService.empGenderData());
    }
    @GetMapping("empJobData")
    public R empJobData(){
        return R.ok(reportService.empJobData());
    }
    @GetMapping("studentDegreeData")
    public R studentDegreeData(){
        return R.ok(reportService.reportdegree());
    }
    @GetMapping("studentCountData")
    public R studentCountData(){

        return R.ok(reportService.studentCountData());
    }
}
